<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title>题库编辑</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="../../css/public.css">
	<link rel="stylesheet" href="../../css/use.css" media="all" />
</head>

<body class="childrenBody" style="padding-top: 15px;">
	<form class="layui-form" style="width:80%;">
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">题目</label>
			<div class="layui-input-block">
				<textarea name="subject" placeholder="请输入题目" class="layui-textarea subject"
					lay-verify="required"></textarea>
			</div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">题型</label>
			<div class="layui-input-block">
				<input type="radio" name="questionType" lay-filter="questionType" class="questionType" value="1"
					title="单选题" checked>
				<input type="radio" name="questionType" lay-filter="questionType" class="questionType" value="2"
					title="多选题">
				<input type="radio" name="questionType" lay-filter="questionType" class="questionType" value="3"
					title="填空题">
				<input type="radio" name="questionType" lay-filter="questionType" class="questionType" value="4"
					title="判断题">
				<input type="radio" name="questionType" lay-filter="questionType" class="questionType" value="5"
					title="简答题">
			</div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12" id="option1">
			<label class="layui-form-label">选项</label>
			<div class="layui-input-block">
				<input type="radio" name="option1" class="option1" value="A" title="A">
				<input type="radio" name="option1" class="option1" value="B" title="B">
				<input type="radio" name="option1" class="option1" value="C" title="C">
				<input type="radio" name="option1" class="option1" value="D" title="D">
			</div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12" id="option2" style="display: none;">
			<label class="layui-form-label">选项</label>
			<div class="layui-input-block">
				<input type="checkbox" name="optionA" class="option2" value="A" title="A">
				<input type="checkbox" name="optionB" class="option2" value="B" title="B">
				<input type="checkbox" name="optionC" class="option2" value="C" title="C">
				<input type="checkbox" name="optionD" class="option2" value="D" title="D">
				<input type="checkbox" name="optionE" class="option2" value="E" title="E">
				<input type="checkbox" name="optionF" class="option2" value="F" title="F">
			</div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12" id="option3" style="display: none;">
			<label class="layui-form-label">选项</label>
			<div class="layui-input-block">
				<input type="radio" name="option3" class="option3" value="正确" title="正确" lay-skin="primary">
				<input type="radio" name="option3" class="option3" value="错误" title="错误" lay-skin="primary">
			</div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">答案</label>
			<div class="layui-input-block">
				<textarea name="answer" placeholder="请输入答案" class="layui-textarea answer"
					lay-verify="required"></textarea>
			</div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">院校</label>
			<div class="layui-input-block">
				<input name="school" type="text" class="layui-input school" lay-verify="required" placeholder="请输入院校">
			</div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">科目</label>
			<div class="layui-input-block">
				<input name="course" type="text" class="layui-input course" placeholder="请输入科目">
			</div>
		</div>
		<input type="hidden" name="questionBaseId" type="text" class="layui-input questionBaseId" value="">
		<input type="hidden" name="addOrUpdate" type="text" class="layui-input addOrUpdate" value="">
		<div class="layui-form-item layui-row layui-col-xs12">
			<div class="layui-input-block">
				<button class="layui-btn " lay-submit="" lay-filter="editQuestionBase">提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
	</form>
	<script type="text/javascript" src="../../layui/layui.js"></script>
	<script src="../../js/public.js"></script>
	<script type="text/javascript" src="questionBaseEdit.js"></script>
</body>

</html>